package com.viking;


import com.ribbon.RibbonRandomRuleConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;

@SpringBootApplication
@Slf4j
// 服务配置负载均衡策略，走代码配置, 也可直接走配置文件
//@RibbonClients(value = {
//        @RibbonClient(name = "stock-service",configuration = RibbonRandomRuleConfig.class)
//})
public class OrderRibbonApplication {
    public static void main(String[] args) {
        log.info("===订单服务开始启动");
        SpringApplication.run(OrderRibbonApplication.class,args);
        log.info("===订单服务启动完成");
    }
}